#include "rpgbackground.h"

RpgBackground::RpgBackground(u8 screen, u8 id, PA_BgStruct *map)
{
    m_id = id;
    m_screen = screen;
    m_map = map;
}

void RpgBackground::load()
{
    PA_LoadBackground(m_screen, m_id, m_map);
}

void RpgBackground::remove()
{
    PA_DeleteBg(m_screen, m_id);
}

void RpgBackground::scroll(s32 x, s32 y)
{
    PA_EasyBgScrollXY(m_screen, m_id, x, y);
}

void RpgBackground::scrollX(s32 x)
{
    PA_EasyBgScrollX(m_screen, m_id, x);
}

void RpgBackground::scrollY(s32 y)
{
    PA_EasyBgScrollY(m_screen, m_id, y);
}
